package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WalletBackMapper;
import com.ruoyi.system.domain.WalletBack;
import com.ruoyi.system.service.IWalletBackService;

/**
 * 银行卡账护Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-14
 */
@Service
public class WalletBackServiceImpl implements IWalletBackService 
{
    @Autowired
    private WalletBackMapper walletBackMapper;

    /**
     * 查询银行卡账护
     * 
     * @param id 银行卡账护主键
     * @return 银行卡账护
     */
    @Override
    public WalletBack selectWalletBackById(String id)
    {
        return walletBackMapper.selectWalletBackById(id);
    }

    /**
     * 查询银行卡账护列表
     * 
     * @param walletBack 银行卡账护
     * @return 银行卡账护
     */
    @Override
    public List<WalletBack> selectWalletBackList(WalletBack walletBack)
    {
        return walletBackMapper.selectWalletBackList(walletBack);
    }

    /**
     * 新增银行卡账护
     * 
     * @param walletBack 银行卡账护
     * @return 结果
     */
    @Override
    public int insertWalletBack(WalletBack walletBack)
    {
        return walletBackMapper.insertWalletBack(walletBack);
    }

    /**
     * 修改银行卡账护
     * 
     * @param walletBack 银行卡账护
     * @return 结果
     */
    @Override
    public int updateWalletBack(WalletBack walletBack)
    {
        return walletBackMapper.updateWalletBack(walletBack);
    }

    /**
     * 批量删除银行卡账护
     * 
     * @param ids 需要删除的银行卡账护主键
     * @return 结果
     */
    @Override
    public int deleteWalletBackByIds(Long[] ids)
    {
        return walletBackMapper.deleteWalletBackByIds(ids);
    }

    /**
     * 删除银行卡账护信息
     * 
     * @param id 银行卡账护主键
     * @return 结果
     */
    @Override
    public int deleteWalletBackById(Long id)
    {
        return walletBackMapper.deleteWalletBackById(id);
    }
}
